package com.example.demoexample.utils;

import android.content.Context;
import android.widget.Toast;

import com.example.demoexample.DemoApplication;

/**
 * Created by songdongliang on 2016/8/17.
 */

public class ToastUtil {

    public static void showMessageShort(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    public static void showMessageLong(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
    }

    public static void showMessageShort(String msg) {
        Toast.makeText(DemoApplication.getInstance(), msg, Toast.LENGTH_SHORT).show();
    }

}
